package com.kingdee.pda.callback;

import android.view.MotionEvent;
import android.view.View;
import android.widget.HorizontalScrollView;

/**
 * @author：dlj
 * @data：2022/1/13
 * @des：
 */
public class MyTouchLinstener implements View.OnTouchListener {

    private final HorizontalScrollView headSrcrollView;

    public MyTouchLinstener(View headSrcrollView) {
        this.headSrcrollView = (HorizontalScrollView) headSrcrollView;
    }

    @Override
    public boolean onTouch(View arg0, MotionEvent arg1) {
        //当在表头和listView控件上touch时，将事件分发给 ScrollView
        headSrcrollView.onTouchEvent(arg1);
        return false;
    }
}
